import { UserDispatchContext } from "@/providers/UserContextProvider"
import { createApiClient } from "@/utils/api_client"
import { useContext } from "react"

export default function useRpcApi() {
    const userDispatch = useContext(UserDispatchContext)
    return createApiClient(userDispatch)
}
